package com.suiyun.EventBusDemo.async.handler;

import com.google.common.eventbus.Subscribe;
import com.suiyun.EventBusDemo.async.event.DemoAsyncEvent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author ww
 * @date 2020/10/29 下午2:20
 */
@Slf4j
@Service
public class AsyncEventListener {

    @Subscribe
    public void eventListener(DemoAsyncEvent demoAsyncEvent){
        log.info("asyncEventListener -->{}",demoAsyncEvent.getName());
    }
}
